package com.atguigu.jxc.util;

import com.atguigu.jxc.entity.User;

import javax.servlet.http.HttpSession;

/**
 * TODO
 *
 * @author Mr.zhao
 * @version 1.0
 * @date 2022/1/4 11:05
 */
public class UserUtil {

    public static User getUser(HttpSession session){
       return     (User) session.getAttribute("currentUser");
    }

}
